﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<AccountListViewModel>" %>

<%@ Import Namespace="Pp.UI.Models" %>
<%@ Import Namespace="Pp.Core.Extentions" %>
<%@ Import Namespace="Pp.Dto" %>
<%@ Import Namespace="Pp.Globalization" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MiddleWall" runat="server">
    <h2>
        <%=Res.Title_Users_List%></h2>
    <% foreach (var item in Model.Users.List)
       { %>
    <div class="User_Entirebox-list">
        <img class="userImage" width="50px" height="50px" src="<%: item.Picture.ExistImage(Server,ImageType.Profile)%>" />
        <div class="User_Detail">
            <h5>
                <a href="/Profile/Index/<%=item.Username %>">
                    <%: item.GetFullName() %></a>
            </h5>
            <%if (item.MailAdressVisible)
              {%>
            <p>
                <a href="mailto:<%: item.MailAdress %>">
                    <%: item.MailAdress %></a></p>
            <%} %>
        </div>
    </div>
    <% } %>
    <% if (Model.Users.List.Count > 0)
       {%>
    <%Html.RenderPartial("Pager", Model.Users.PageInfo); %>
    <%}
       else
       {%>
    <%=Res.Message_Users_No_Found%>
    <%}%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="LeftWall" runat="server">
    <div id="sidebar">
        <%if (User.Identity.IsAuthenticated) Html.RenderPartial("UserCardRead", Model.UserSmallDto); %>
        <%Html.RenderAction("GetCategories","Home"); %>
        <%Html.RenderAction("LastComments","Home"); %>
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="RightWall" runat="server">
    <h2>
    </h2>
</asp:Content>
